// src/main/java/cn/edu/cdu/health/entity/Department.java
package cn.edu.cdu.health.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("department")
public class Department {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("dept_code")
    private String deptCode;

    @TableField("dept_name")
    private String deptName;

    @TableField("dept_description")
    private String deptDescription;

    @TableField("dept_type")
    private String deptType;

    @TableField("dept_phone")
    private String deptPhone;

    @TableField("dept_location")
    private String deptLocation;

    @TableField("dept_head")
    private String deptHead;

    private Integer status;

    @TableField("sort_order")
    private Integer sortOrder;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;
}
